<template>
<svg :width="props.size + 'px'" :height="props.size + 'px'">
  <use :xlink:href="`#icon-${props.name}`" :color="props.color" ></use>
</svg>
</template>

<script setup lang="ts">

// 获取父组件传递的数据
const props = defineProps({
    prefix: String,
    name: String,
    color: String,
    size: String
})
</script>

<style lang="scss" scoped>

</style>